import axios from '@/functions/request';

function getStartForm(params) {
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/flow/form/getStartFormList",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e) 
        });
    })
}

function getTaskForm(params) {
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/flow/form/getTaskFormList",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e) 
        });
    })
}

function getHisTask(params) {
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/flow/history/getHisTask",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e) 
        });
    })
}

export {
    getStartForm,
    getTaskForm,
    getHisTask
}
